import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index'
import store from '@/store/index'

// swiper样式文件
import 'swiper/css/swiper.min.css'

// 启动mock
import '@/mock/mockServer'

import { Message } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import VueLazyload from 'vue-lazyload'
import load from '@/assets/aa.gif'
Vue.use(VueLazyload, {
  loading: load,
})
Vue.config.productionTip = false
Vue.prototype.$message = Message

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
